package cn.lanqiao.entity;

import java.io.Serializable;

public class Users  implements Serializable {
	private static final long serialVersionUID = 1L;
	private String uuid;
	private String account;
	private String password;
	private String telephone;
	private String role;

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public Users() {

	}

	public Users(String password, String telephone) {
		super();
		this.password = password;
		this.telephone = telephone;
	}

	public Users(String account, String password, String telephone, String role) {
		super();
		this.account = account;
		this.password = password;
		this.telephone = telephone;
		this.role = role;
	}

	public Users(String uuid, String account, String password, String telephone, String role) {
		super();
		this.uuid = uuid;
		this.account = account;
		this.password = password;
		this.telephone = telephone;
		this.role = role;
	}

	@Override
	public String toString() {
		return "Users [uuid=" + uuid + ", account=" + account + ", password=" + password + ", telephone=" + telephone
				+ ", role=" + role + "]";
	}

	// 返回用户角色
	public int returnRole(String targetStr) {
		int parseInt = Integer.valueOf(targetStr).intValue();
		return parseInt;
	}
}